﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VisionCore
{
    public class clsAxisMotionI
    {
        /// <summary>
        /// 0位 RDY针脚输入
        /// </summary>
        public int RDY { get; set; } = 0;

        /// <summary>
        ///8位 Busy信号输入
        /// </summary>
        public int BUSY { get; set; } = 0;

        /// <summary>
        ///9位 伺服开启
        /// </summary>
        public int SVON { get; set; } = 0;

        /// <summary>
        ///10位 原点标识
        /// </summary>
        public int SETON { get; set; } = 0;

        /// <summary>
        ///11位 到位信号输入
        /// </summary>
        public int INP { get; set; } = 0;

        /// <summary>
        ///12位 区域1
        /// </summary>
        public int AREA { get; set; } = 0;

        /// <summary>
        ///12位 区域1
        /// </summary>
        public int WAREA { get; set; } = 0;

        /// <summary>
        /// 6 紧急信号输入
        /// </summary>
        public int EMG { get; set; } = 0;

        /// <summary>
        ///1位 报警信号输入
        /// </summary>
        public int ALM { get; set; } = 0;

        /// <summary>
        ///
        /// </summary>
        public int OUT0 { get; set; } = 0;

        /// <summary>
        ///
        /// </summary>
        public int OUT1 { get; set; } = 0;

        /// <summary>
        ///
        /// </summary>
        public int OUT2 { get; set; } = 0;

        /// <summary>
        ///
        /// </summary>
        public int OUT3 { get; set; } = 0;

        /// <summary>
        ///
        /// </summary>
        public int OUT4 { get; set; } = 0;

        /// <summary>
        ///
        /// </summary>
        public int OUT5 { get; set; } = 0;
    }

    public class clsAxisMotionO
    {
        /// <summary>
        ///
        /// </summary>
        public byte IN0 { get; set; } = 0;

        /// <summary>
        ///
        /// </summary>
        public byte IN1 { get; set; } = 0;

        /// <summary>
        ///
        /// </summary>
        public byte IN2 { get; set; } = 0;

        /// <summary>
        ///
        /// </summary>
        public byte IN3 { get; set; } = 0;

        /// <summary>
        ///
        /// </summary>
        public byte IN4 { get; set; } = 0;

        /// <summary>
        ///
        /// </summary>
        public byte IN5 { get; set; } = 0;

        /// <summary>
        /// 9位
        /// </summary>
        public byte SVON { get; set; } = 0;

        /// <summary>
        /// 10位
        /// </summary>
        public byte DRIVE { get; set; } = 0;

        /// <summary>
        /// 11位
        /// </summary>
        public byte RST { get; set; } = 0;

        /// <summary>
        /// 12位
        /// </summary>
        public byte SETUP { get; set; } = 0;

        /// <summary>
        /// 13位
        /// </summary>
        public byte JOG_R { get; set; } = 0;

        /// <summary>
        /// 14位
        /// </summary>
        public byte JOG_F { get; set; } = 0;

        /// <summary>
        /// 15位
        /// </summary>
        public byte FLGTH { get; set; } = 0;
    }
}
